package com.liang.text4;

public class TestDemo {
    public static void main(String[] args) {
        Fu f = new Zi();
        f.method();
        System.out.println(f.num);
    }
}



class Fu{
    int num = 10;

    public void method(){
        System.out.println("fu....");
    }
}

class Zi extends Fu{
    int num = 20;

    public void method() {
        System.out.println("zi....");
    }
}


